<?php 
/**
	Script used to delete an account
*/
require_once('header_redirection.php');
require_once('Class/account.Class.php');

if (isset($_POST['email_to_delete']))
{
	account::deleteAccount($_POST['email_to_delete']);
}
header("Location: administration.php?account_deleted=" . $_POST['email_to_delete']);
exit;
?>